package com.ynet.middleground.riskmanage.bean;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 大港静态质押监管及解除结果同步信息
 * @date 2020-08-18 13:36
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "大港静态质押监管及解除结果同步信息", description = "大港静态质押监管及解除结果同步信息")
public class SyncPledgeStaticDgReq implements Serializable {

    private static final long serialVersionUID = 7327970204096258545L;

    @ApiModelProperty(value = "指令 ZYJG-质押监管 JCZYJG-解除质押监管", notes = "指令 ZYJG-质押监管 JCZYJG-解除质押监管", required = true)
    @NotEmpty(message = "指令不能为空")
    private String order;

    @ApiModelProperty(value = "执行结果 0 为成功，其余值均为失败", notes = "执行结果 0 为成功，其余值均为失败", required = true)
    @NotEmpty(message = "执行结果不能为空")
    private String result;

    @ApiModelProperty(value = "原因", notes = "原因", required = true)
    @NotEmpty(message = "原因不能为空")
    @Size(max = 255)
    private String reason;

}
